package com.example.api.service;

import com.example.api.model.entity.Commodity;
import com.example.api.model.support.RespBean;

import java.util.List;

public interface CommodityService {

    RespBean save(Commodity commodity);

    RespBean update(Commodity commodity);

    RespBean delete(Integer id);

    Commodity findById(Integer id);

    List<Commodity> findAll(String name);

    List<Commodity> findByWid(Integer id);

}
